package com.songtech.position.model;

import com.songtech.server.entry.PositionProtocal;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created with IntelliJ IDEA.
 * Description: 定位信息实体类
 * @Author: rentie
 * @Date: 2018/4/11 9:55
 */

@Table(name = "sys_pos_trail")
public class SysPosTrail extends PositionProtocal {
    /**
     * 历史轨迹id
     */
    @Id
    @Column(name = "trail_id")
    private Long trailId;

    /**
     * 报警信息
     */
    @Column(name = "warning_info")
    private String warningInfo;


    //保存前端需要的经度
    private Double longitudeShow;

    /**
     * 保存前端需要的纬度
     */
    private Double latitudeShow;

    /**
     * 设备名称
     */
    private String terminalName;

    
    /**
     * 获取历史轨迹id
     *
     * @return trail_id - 历史轨迹id
     */
    public Long getTrailId() {
        return trailId;
    }

    /**
     * 设置历史轨迹id
     *
     * @param trailId 历史轨迹id
     */
    public void setTrailId(Long trailId) {
        this.trailId = trailId;
    }


    /**
     * 获取报警信息
     *
     * @return warning_info - 报警信息
     */
    public String getWarningInfo() {
        return warningInfo;
    }

    /**
     * 设置报警信息
     *
     * @param warningInfo 报警信息
     */
    public void setWarningInfo(String warningInfo) {
        this.warningInfo = warningInfo == null ? null : warningInfo.trim();
    }

    public String getTerminalName() {
        return terminalName;
    }

    public void setTerminalName(String terminalName) {
        this.terminalName = terminalName;
    }

    public Double getLongitudeShow() {
        return longitudeShow;
    }

    public void setLongitudeShow(Double longitudeShow) {
        this.longitudeShow = longitudeShow;
    }

    public Double getLatitudeShow() {
        return latitudeShow;
    }

    public void setLatitudeShow(Double latitudeShow) {
        this.latitudeShow = latitudeShow;
    }
    
}